<template>
  <el-row :gutter="20">
    <el-col :span="6" v-for="item in list" :key="item.id">
      <div class="grid-content bg-purple">
        <i
          :class="`iconfont icon-${item.icon}  ${item.red}`"
          :style="{ color: item.color }"
        ></i>
        <div>
          <h4>{{ item.str }}</h4>
          <p>{{ item.num }}</p>
        </div>
      </div>
    </el-col>
  </el-row>
</template>

<script>
export default {
  props: {
    list: {
      type: Array,
      default: () => []
    }
  }
}
</script>

<style lang="less" scoped>
.bg-purple {
  background: #fff;
}
.grid-content {
  border-radius: 4px;
  min-height: 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  i {
    font-size: 34px;
  }
  div {
    h4 {
      color: #ccc;
      font-size: 18px;
      margin-bottom: 10px;
    }
    p {
      color: #333;
      font-size: 14px;
      font-weight: 700;
    }
  }
}
</style>
